//
//  ZYSubAccountViewModel.h
//  YiLin
//
//  Created by Zyark on 2018/6/14.
//  Copyright © 2018年 Zyark. All rights reserved.
//

#import "ZYBaseViewModel.h"

@interface ZYSubAccountViewModel : ZYBaseViewModel

/**
 获取子账户列表数据源
 */
@property(nonatomic,strong) RACCommand *sourceCommand;

/**
 添加子账户
 */
@property(nonatomic,strong,readonly) RACCommand *addCommand;

/**
 删除子账户
 */
@property(nonatomic,strong,readonly) RACCommand *deleteCommand;

/**
 修改子账户
 */
@property(nonatomic,strong,readonly) RACCommand *modifyCommand;

/**
 下拉刷新加载子账户列表
 */
-(void)loadNewSubAccountList;

/**
 上拉加载更多子账户列表
 */
-(void)loadMoreSubAccountList;

/**
 添加子账户

 @param subAccount 子账户
 */
-(void)addSubAccount:(ZYUser *)subAccount;


/**
 删除子账户

 @param subAccountId 子账户ID
 */
-(void)deleteSubAccount:(NSString *)subAccountId;

/**
 修改子账户密码
 @param subAccount 子账户
 */
-(void)modifySubAccount:(ZYUser *)subAccount;
@end
